import $http from '../request';
const URL_PREFIX = "/feature/basicType";

export const $BasicTypeApi = {

	/**
	 *
	 * @param params
	 */
	getBasicTypeTableData: (params) => {
		return $http.$post(URL_PREFIX + "/list", params, {})
	},

	/**
	 *
	 * @param params
	 * @returns {Promise<*>}
	 */
	createBasicType: (params) => {
		return $http.$post(URL_PREFIX + "/create", params, {})
	},

	updateBasicType: (params) => {
		return $http.$post(URL_PREFIX + "/update", params, {});
	},

	/**
	 *
	 * @param params
	 * @returns {Promise<*>}
	 */
	deleteBasicTypeByIds: (params) => {
		return $http.$post(URL_PREFIX + "/removeByIds", params, {})
	},


	/**
	 * 获取基础类型树形数据
	 * @returns {Promise<*>}
	 */
	getBasicTypeTreeData: () => {
		return $http.$get(URL_PREFIX + "/getTreeData", {});
	},

	listAllJdbcType: () => {
		return $http.$get(URL_PREFIX + "/listAllJdbcType", {});
	}


}